package com.example.NeteaseCloudMusicApi.ui;

import com.example.NeteaseCloudMusicApi.entity.BannersJson;
import com.example.NeteaseCloudMusicApi.entity.FoundCircleDateJson;
import com.example.NeteaseCloudMusicApi.entity.LoginDTO;
import com.example.NeteaseCloudMusicApi.entity.Player;
import com.example.NeteaseCloudMusicApi.entity.RecommendJson;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

public interface APIService {

    @GET("login/cellphone")
    Call<LoginDTO> login(@Query("phone") String phone,
                         @Query("password") String password);//登陆

    @GET("api/playlist/detail")
    Call<Player> getPlayer(@Query("id") String id);

    @GET("/homepage/dragon/ball")
    Call<FoundCircleDateJson> getBall();

    @GET("/personalized?limit=6")
    Call<RecommendJson> getRecommend();

    @GET("/banner")
    Call<BannersJson> getBanners();
}
